<?php

namespace common\models;

use Yii;

/**
 * This is the model class for table "me_user_task_operate".
 *
 * @property integer $id
 * @property integer $userid
 * @property integer $taskid
 * @property integer $taskuserid
 * @property double $price
 * @property integer $status
 * @property integer $is_hidden
 * @property integer $is_complain
 * @property integer $complain_at
 * @property integer $complain_audit_at
 * @property integer $appeal_at
 * @property integer $appeal_audit_at
 * @property string $complain_note
 * @property string $appeal_task_image
 * @property string $task_image
 * @property integer $uped_at
 * @property string $upip
 * @property integer $is_broker
 * @property string $appeal_taskcount
 * @property string $taskaccount
 * @property integer $created_at
 * @property integer $updated_at
 */
class UserTaskOperate extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'me_user_task_operate';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['userid', 'taskid'], 'required'],
            [['userid', 'taskid', 'taskuserid', 'status', 'is_hidden', 'is_complain', 'complain_at', 'complain_audit_at', 'appeal_at', 'appeal_audit_at', 'uped_at', 'is_broker', 'created_at', 'updated_at'], 'integer'],
            [['price'], 'number'],
            [['complain_note'], 'string'],
            [['appeal_task_image', 'task_image'], 'string', 'max' => 255],
            [['upip'], 'string', 'max' => 50],
            [['appeal_taskcount', 'taskaccount'], 'string', 'max' => 20],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => '自增ID',
            'userid' => '用户编号',
            'taskid' => '任务编号',
            'taskuserid' => '任务商户ID',
            'price' => '任务价格',
            'status' => '任务状态',
            'is_hidden' => '是否放弃',
            'is_complain' => '是否被投诉',
            'complain_at' => '投诉时间',
            'complain_audit_at' => '投诉审核时间',
            'appeal_at' => '申诉时间',
            'appeal_audit_at' => '申诉审核时间',
            'complain_note' => '投诉原因',
            'appeal_task_image' => '申诉任务图片',
            'task_image' => '任务图片',
            'uped_at' => '上传时间',
            'upip' => '上传IP',
            'is_broker' => '佣金已返',
            'appeal_taskcount' => '申诉任务账号',
            'taskaccount' => '任务账号',
            'created_at' => '开始时间',
            'updated_at' => '更新时间',
        ];
    }
}
